﻿using Mud.Characters;
using Mud.Utility;

namespace Mud
{
    public class Mud
    {
        public static void Main()
        {
            MetaWorld metaWorld = new MetaWorld();
            Character c;
            // do
            {
                bool confirm;
                string name = IO.GetAnswer("What is your name? ");
                if (Character.CharacterExists(new CharacterDal(), name))
                {
                    c = new Character(new CharacterDal(), name);
                    confirm = c.PasswordConfirm(IO.GetAnswer("Password? "));
                }
                else
                {
                    confirm = IO.GetAnswer($@"Did I get that right, {name}?(Y/N) ").ToUpper() == "Y";
                    if (confirm)
                    {
                        string password1 = IO.GetAnswer("Enter a password: ");
                        string password2 = IO.GetAnswer("Confirm password: ");
                    }
                }
            }
        }
    }
}
